package com.chuyu.jzwboa.activity.launcher;

import android.content.Intent;
import android.os.Build;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.chuyu.jzwboa.MainActivity;
import com.chuyu.jzwboa.R;
import com.chuyu.jzwboa.base.MVPBaseActivity;
import com.chuyu.jzwboa.presenter.launcher.LoginPresnter;
import com.chuyu.jzwboa.view.iview.launcher.ILgoinView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author 杨仕俊
 * @descrption 登录页
 * Created by wo on 2017/12/14.
 */

public class LoginActivity extends MVPBaseActivity<ILgoinView, LoginPresnter> implements ILgoinView {

    @BindView(R.id.edit_name)
    EditText editName;
    @BindView(R.id.edit_password)
    EditText editPassword;
    @BindView(R.id.forget_pwd)
    TextView forgetPwd;
    @BindView(R.id.bt_login)
    Button btLogin;

    @Override
    public void showPorgressBar() {

    }

    @Override
    public void closePorfressBar() {

    }

    @Override
    public void loginSuccess() {

    }

    @Override
    public void loginFaile() {

    }

    @Override
    public void showLoginExpetion(String expetion) {

    }


    @Override
    protected int initContent() {
        return R.layout.activity_login;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @NonNull
    @Override
    public LoginPresnter createPresenter() {
        return new LoginPresnter();
    }



    @OnClick({R.id.forget_pwd, R.id.bt_login})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.forget_pwd:
                break;
            case R.id.bt_login:
                Intent intent = new Intent(this, MainActivity.class);
                startActivity(intent);
                finish();
                break;
            default:
                break;
        }
    }
}
